package com.cristina.attention.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.cristina.attention.base.BaseEntity;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author by Attention
 * @Classname GroupMember
 * @Date 2021/12/6
 */
@Data
@EqualsAndHashCode(callSuper = false)
@JsonInclude(JsonInclude.Include.NON_NULL)
@TableName(value = "im_group_member")
public class GroupMember extends BaseEntity {

    @TableId(type = IdType.ASSIGN_ID)
    @TableField(value = "id")
    private Long id;

    @TableField(value = "user_id")
    private Long userId;

    @TableField(value = "group_id")
    private Long groupId;

    /**
     * 入群时间
     */
    @TableField(value = "into_time")
    private Long intoTime;

}
